home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / lpr10.zip / LP.H < prev    next >
C/C++ Source or Header  |  1992-11-01  |  990b  |  42 lines

  1. /*
  2.  * lp.h
  3.  *
  4.  * General routines for lpr routines
  5.  *
  6.  * by Eric Brown
  7.  *    28 Oct '92
  8.  */
  9.  
  10. #ifndef _LP_H_
  11. #define _LP_H_
  12.  
  13. #define DEFAULT_PRINTER        "lp"
  14. #define PRINTER_PORT        515
  15. #define MAX_PRIV_PORT        1023
  16. #define BIND_RETRIES        30
  17.  
  18. /* LPD request codes */
  19. #define LPD_CHECK_QUEUE             '\001'
  20. #define LPD_PRINT_JOB               '\002'
  21. #define LPD_DISPLAY_SHORT_QUEUE     '\003'
  22. #define LPD_DISPLAY_LONG_QUEUE      '\004'
  23. #define LPD_REMOVE_JOB              '\005'
  24. #define LPD_END_TRANSFER            '\000'
  25. #define LPD_ABORT                   '\001'
  26. #define LPD_RECEIVE_CONTROL_FILE    '\002'
  27. #define LPD_RECEIVE_DATA_FILE       '\003'
  28.  
  29. /* LPD return codes */
  30. #define LPD_OK                  '\0'
  31. #define LPD_ERROR               '\1'
  32. #define LPD_NO_SPOOL_SPACE      '\2'
  33.  
  34. char *lp_printcap_server_lookup(char *printer);
  35. int  lp_tcp_startup();
  36. void lp_tcp_shutdown();
  37. int  lp_tcp_open(char *server);
  38. void lp_randomize();
  39.  
  40. #endif /*_LP_H_*/
  41.  
  42.